﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GtsServer.Model;
using System.Data;
using GtsServer.DAL;
using GtsServer.Common;

namespace GtsServer.Manage.Controller
{
    public class PrizeTypeController
    {
        PrizeTypeDAL dal = new PrizeTypeDAL();
        public List<PrizeType> GetList()
        {
            DataSet ds = dal.GetList(string.Empty);
            return IListDataSet.DataSetToIList<PrizeType>(ds, 0).ToList();
        }

        public bool Add(PrizeType model)
        {
            return dal.Add(model);
        }

        public bool Update(PrizeType model)
        {
            return dal.Update(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }
    }
}
